package com.xbongbong.saas.domain.entity;

import com.xbongbong.paas.toolbox.util.DateUtil;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author long.rao
 * @version v1.0
 * @date 2019/2/25 15:52
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class ContractPerformanceEntity implements Serializable {

    //主键
    private Long id;
    //公司ID
    private String corpid;
    //合同ID
    private Long contractId;
    //员工ID
    private String userId;
    //员工头像
    private String userAvatar;
    //员工姓名
    private String userName;
    //是否为签订人
    private Integer isSign;
    //分配比例
    private Double rate;
    //添加时间
    private Long addTime;
    //更新时间
    private Long updateTime;
    //删除标记
    private Integer del;

    //扩展字段
    //分配金额
    private Double amount = 0d;
    //合同签订时间
    private Integer signTime = 0;
    //合同币种
    private Integer currency = 0;
    //合同成本
    private Double contractCost;
    //合同毛利
    private Double grossProfit;
    //合同毛利率
    private Double grossProfitRate;
    //现金毛利
    private Double cashProfit;
    //现金毛利率
    private Double cashProfitRate;


    public ContractPerformanceEntity (){
        long now = DateUtil.getInt();
        this.updateTime =now ;
        this.addTime =now ;
        this.del = 0;
    }
}
